import request from '@/utils/request'

request.baseURL = 'http://localhost:9091'

export const getinboundListByOrderIdService = (orderId) => {
  return request.get('/inbound/getinboundListByOrderId', {
    params: { orderId: orderId }
  })
}

export const getOrderListByQueryinfService = (queryiInf) => {
  return request.get('/purchaseOder/getOrderListByQueryinf', {
    params: { queryiInf: queryiInf }
  })
}

export const delPurchaseOrderByIdService = (Id) => {
  return request.get('/purchaseOder/delPurchaseOrderById', {
    params: { Id: Id }
  })
}

export const getSupplyListByQueryinfService = (queryiInf) => {
  return request.get('/supplier/getSupplyListByQueryinf', {
    params: { queryiInf: queryiInf }
  })
}

export const addPurchaseOrderService = (params) => {
  return request.post('/purchaseOder/addPurchaseOrder', params)
}
